def get_distinct_and_avg_salary(job_info):
    import re

    address = job_info['address']
    m = re.match('(?P<min_salary>[\d\.]+)-(?P<max_salary>[0-9\.]+)(?P<unit>(万|千))/(?P<time>(月|年))',
                 job_info['salary'])
    if not m:
        return

    min_salary = float(m.group("min_salary"))
    max_salary = float(m.group("max_salary"))

    if m.group("unit") == "万":
        min_salary *= 10
        max_salary *= 10

    if m.group("time") == "年":
        min_salary /= 12
        max_salary /= 12

    avg_salary = (min_salary + max_salary) / 2
    return address, avg_salary
